<?php
namespace app\model;

use think\Model;
class User extends Model{
    public function Roles(){
        return $this->belongsToMany(Role::class,Access::class,'role_id','user_id');
    }
}